package cn.yunhe.test;

import cn.yunhe.dao.AdminMapper;
import cn.yunhe.pojo.Admin;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class Demo1 {
    SqlSession session = SqlSessionFactoryUtil.getSqlSession();
       AdminMapper adminMapper = session.getMapper(AdminMapper.class);
       @Test
    public void name() {
           List<Admin> list = adminMapper.getAll();
     for(Admin admin:list){
         System.out.println(admin.getAdminName()+"---"+admin.getAdminPwd());

     }
    }


}
